package com.dp.selenium.grid.demo;

import com.dp.selenium.grid.demo.common.NodeServerInfo;
import com.dp.selenium.grid.demo.test.Executor;
import com.dp.selenium.grid.demo.testobj.DoBaiduTest;
import com.dp.selenium.grid.demo.testobj.DoGoogleTest;

public class App 
{
    public static void main( String[] args ) throws Exception
    {
    	String firefoxLocation = "C:\\Program Files\\Mozilla Firefox\\V24\\firefox.exe";
		String url49 = "http://10.33.2.49:6666/wd/hub";
		String url45 = "http://10.33.2.45:6666/wd/hub";
		String url = "http://localhost:4444/wd/hub";

		Executor exec = new Executor();
		exec.register(new DoBaiduTest(firefoxLocation, url45));
		exec.register(new DoGoogleTest(new NodeServerInfo(firefoxLocation, url45)));
		exec.execute();
    }
}
